package org.bluebee.billiardsbar.entity;

public class Commodities {
	private String comId;
	private String comName;
	private double unitPrice;
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public String getComName() {
		return comName;
	}
	public void setComName(String comName) {
		this.comName = comName;
	}
	public double getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((comId == null) ? 0 : comId.hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Commodities other = (Commodities) obj;
		if (comId == null) {
			if (other.comId != null)
				return false;
		} else if (!comId.equals(other.comId))
			return false;
		return true;
	}
	public Commodities(String comId, String comName, double unitPrice) {
		super();
		this.comId = comId;
		this.comName = comName;
		this.unitPrice = unitPrice;
	}
	public Commodities() {
		super();
	}
	
	
}
